package _1._0._0._127.ormrpc.services.WSCreateProjectFacade;

public class WSCreateProjectFacadeSrvProxyProxy implements WSCreateProjectFacadeSrvProxy {
    private String _endpoint = null;
    private WSCreateProjectFacadeSrvProxy wSCreateProjectFacadeSrvProxy = null;

    public WSCreateProjectFacadeSrvProxyProxy() {
        _initWSCreateProjectFacadeSrvProxyProxy();
    }

    public WSCreateProjectFacadeSrvProxyProxy(String endpoint) {
        _endpoint = endpoint;
        _initWSCreateProjectFacadeSrvProxyProxy();
    }

    private void _initWSCreateProjectFacadeSrvProxyProxy() {
        try {
            wSCreateProjectFacadeSrvProxy = (new WSCreateProjectFacadeSrvProxyServiceLocator()).getWSCreateProjectFacade();
            if (wSCreateProjectFacadeSrvProxy != null) {
                if (_endpoint != null)
                    ((javax.xml.rpc.Stub) wSCreateProjectFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
                else
                    _endpoint = (String) ((javax.xml.rpc.Stub) wSCreateProjectFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
            }

        } catch (javax.xml.rpc.ServiceException serviceException) {
        }
    }

    public String getEndpoint() {
        return _endpoint;
    }

    public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
        if (wSCreateProjectFacadeSrvProxy != null)
            ((javax.xml.rpc.Stub) wSCreateProjectFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public WSCreateProjectFacadeSrvProxy getWSCreateProjectFacadeSrvProxy() {
        if (wSCreateProjectFacadeSrvProxy == null)
            _initWSCreateProjectFacadeSrvProxyProxy();
        return wSCreateProjectFacadeSrvProxy;
    }

    public String[] createProject(String xmlData) throws java.rmi.RemoteException, createprojectfacade.client.WSInvokeException {
        if (wSCreateProjectFacadeSrvProxy == null)
            _initWSCreateProjectFacadeSrvProxyProxy();
        return wSCreateProjectFacadeSrvProxy.createProject(xmlData);
    }

    public String[] projectToAssign(String projectNo, String cuNumber) throws java.rmi.RemoteException, createprojectfacade.client.WSInvokeException {
        if (wSCreateProjectFacadeSrvProxy == null)
            _initWSCreateProjectFacadeSrvProxyProxy();
        return wSCreateProjectFacadeSrvProxy.projectToAssign(projectNo, cuNumber);
    }


}